package com.example.design_pattern.command;

public class Client {

    public static void main(String[] args){
        Client client = new Client();
        client.test1();
    }

    private void test1(){
        AudioPlayer audioPlayer = new AudioPlayer();
        Command startCommand = new StartCommand(audioPlayer);
        Command stopCommand = new StopCommand(audioPlayer);
        KeyPad keyPad = new KeyPad(startCommand, stopCommand);
        keyPad.start();
        keyPad.stop();
    }

}
